package com.ylz.tedi.myapplication;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.TextureView;
import android.view.View;
import android.view.ViewGroup;

public class DemoFragment extends Fragment{
    private TextureView textureView;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment,null);
        textureView=view.findViewById(R.id.textureview);
        CeShi ceShi= new CeShi(getActivity(),"rtsp://192.168.1.100/mpeg4cif");
        textureView.setSurfaceTextureListener(ceShi);
        return view;
    }
}
